package com.zimi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
public class SysPrivilege extends Model<SysPrivilege> implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer functionId;
    private Integer billId;
    private String orgId;
    private String privilegeType;
    private Integer roleId;
    private Integer privilegeState;
    private Integer privilegeSort;
    private Integer privilegeFlag;
    private Integer createUser;
    private Integer updateUser;
    private Date updateTime;
    private Date createTime;

    @Override
    protected Serializable pkVal() {
        return id;
    }
}